#!/bin/bash
# description:  Rsync war file
# version:	1.0
# author:	zhangyanbin
# contact:	yanbin_zhang@foxitsoftware.com
#
. functions.sh

if [ ! -d /usr/local/webpdf ]; then
mkdir -p /usr/local/webpdf
fi


echo "--> Begin to download cwebpdf file"
SOFILES_SRC=smx@${DL_SERVER}:/opt/www/${DL_SERVER}/cwebpdf/
rsync ${RSYNC_OPTS} --exclude "convert" -e "${RSH_OPTS}" ${SOFILES_SRC} /usr/local/webpdf/

#echo "--> Begin to download cwebpdf_filessystem file"
#SOFILES_SRC=smx@${DL_SERVER}:/opt/www/${DL_SERVER}/cwebpdf/filessystem/
#rsync ${RSYNC_OPTS} -e "${RSH_OPTS}" ${SOFILES_SRC} /usr/local/webpdf/filessystem/

#echo "--> Begin to download cwebpdf_reader file"
#SOFILES_SRC=smx@${DL_SERVER}:/opt/www/${DL_SERVER}/cwebpdf/reader/
#rsync ${RSYNC_OPTS} -e "${RSH_OPTS}" ${SOFILES_SRC} /usr/local/webpdf/reader/

#echo "--> Begin to download cwebpdf_plugins file"
#SOFILES_SRC=smx@${DL_SERVER}:/opt/www/${DL_SERVER}/cwebpdf/plugins/
#rsync ${RSYNC_OPTS} -e "${RSH_OPTS}" ${SOFILES_SRC} /usr/local/webpdf/plugins/
